var t = getApp();

Page({
    data: {
        id: "",
        kFootshow: !0
    },
    onLoad: function(t) {
        t.id && this.setData({
            id: t.id
        }), t.num && this.setData({
            num: t.num
        }), this.getData();
    },
    tabrshowbtn: function(t) {
        t.detail && this.setData({
            kFootshow: !1
        });
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {
        return {
            path: "/packageE/others/share/share?id=" + this.data.id
        };
    },
    getData: function() {
        wx.showLoading({
            title: "加载中"
        });
        var o = this, e = t.getNetAddresss("plugin.skin-check.api.skin-check.complete-report");
        t._getNetWork({
            url: e,
            data: {
                report_id: o.data.id,
                ingress: "weChatApplet"
            },
            success: function(t) {
                wx.hideLoading({
                    complete: function(t) {}
                });
                var e = t.data;
                console.log(e), 1 == e.result ? (o.setData({
                    beat: e.data.beat,
                    reportDetail: e.data.report.reportDetail,
                    memberInfo: e.data.report.member,
                    composite_score: e.data.report.composite_score,
                    seal: e.data.seal
                }), console.log(o.data.beat)) : wx.showToast({
                    icon: "none",
                    title: e.msg,
                    duration: 1500
                });
            },
            fail: function(t) {
                console.log(t), wx.hideLoading({
                    complete: function(t) {}
                });
            }
        });
    }
});